/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.sh.ndt.exam.mapper;

import com.sh.ndt.common.mapper.BaseRowMapper;
import com.sh.ndt.exam.entity.ExamScheduleDetail;
import java.sql.ResultSet;
import java.sql.SQLException;

/**
 *
 * @author Prashanth
 */
public class ExamScheduleMapper  extends BaseRowMapper{

    @Override
    public Object mapRow(ResultSet rs, int i) throws SQLException {
        ExamScheduleDetail examParam = new ExamScheduleDetail();
        
        examParam.setExamId(rs.getLong("EXAM_ID"));
        examParam.setExamName(rs.getString("EXAM_NAME"));
                examParam.setExamName(rs.getString("DESCRIPTION"));
                //examParam.setExamDate(rs.getDate("EXAM_DATE"));
                examParam.setCourseId(rs.getLong("COURSE_ID"));
                examParam.setConductCount(rs.getInt("CONDUCT_COUNT"));
                examParam.setLastConductDate(rs.getDate("LAST_CONDUCT_DATE"));
                examParam.setDaysLeftForExam(rs.getInt("DAYS_LEFT_FOR_EXAM"));
                examParam.setSignalStatus(rs.getInt("SIGNAL_STATUS"));
                examParam.setScheduleId(rs.getLong("SCHEDULE_ID"));
                examParam.setNextScheduleDate(rs.getDate("NEXT_SCHEDULE_DATE"));
                examParam.setExamDate(rs.getDate("schedule_date"));
        return examParam;    
    }
    
}
